<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class=""><a href="{:U('index')}">申请管理</a></li>
			<li class="active"><a href="">补交申请</a></li>
		</ul>
		<form action="{:U('')}" method="post" class="form-horizontal edit-form" enctype="multipart/form-data">
			<div class="row-fluid">
				<div class="span9">
					<table class="table table-bordered">
						<tr>
							<th>姓名</th>
							<td>
								<input type="text" style="width: 200px;"  class="autocomplete_input" value="{$_GET[name]}" placeholder=""/>
								<input type="hidden" style="width: 400px;" name="post[sn]" class="autocomplete_input_val" value="" placeholder=""/>
							</td>
						</tr>
						<tr>
							<th>申请类型</th>
							<td>
								<select name="post[type]" id="ap_type">
									<option value="">请选择类别</option>
									<option value="1">外出</option>
									<option value="2">请假</option>
									<option value="3">加班</option>
									
								</select>
								<select name="post[vacate_type]" id="ap_vacate_type">
									<option value="">请选择具体类型</option>
								</select>
							</td>
						</tr>
						<tr>
							<th>申请时间</th>
							<td>
								<input type="text" name="post[start_time]" class="js-datetime" value=""  autocomplete="off">-
								<input type="text" name="post[end_time]" class="js-datetime" value=""  autocomplete="off">
							</td>
						</tr>
						<tr>
							<th>理由</th>
							<td>
								<textarea name="post[content]" id="" cols="50" rows="4" style='width:600px;resize:none'></textarea>
							</td>
						</tr>
					</table>
				</div>

			</div>
			<div class="form-actions">
				<button class="btn btn-primary ajax-post no-refresh" target-form='form-horizontal' type="submit">提交</button>
			</div>
		</form>
	</div>
</body>
	<script src="__PUBLIC__/js/common.js"></script>
	<script type="text/javascript" src="__PUBLIC__/js/jquery-ui-1.12/jquery-ui.js"></script>
	<script>
 		$('#ap_type').change(function(){
			var _type = $(this).val()
			var _url = "{:U('ajax_vacate_type')}&type="+_type;
			$.get(_url,function(ret){
				$('#ap_vacate_type').empty().append(ret.data)
			})
		}) 
	</script>
</html>